//构建列表表头
			function buildTable() {
				sSource="http://10.21.30.218:8000/questionnaire/user?userTypeId=5b88e7e8dc8b5a1a84a96368";
				var columns =[{"title":""},{"title":"工号"},{"title":"姓名"},{"title":"部门"},{"title":"手机"}];
				$('#peoplelist').DataTable({
					responsive: true,
					searching: true,
			        "columns":columns,
			        "bLengthChange": true,
			        "bRetrieve": true,
			        "bFilter": true, //过滤功能
			        "serverSide": true,
			        "columnDefs": [ 
						{ "targets": 0,
						  "orderable": false,
						  "data":"id",
                		  "render": function(data, type, row, meta) {
                   			 			return '<input type="checkbox" name="addcheck" />'
                					}
              			},
						 {"targets": 1,
						  "data": "username"},
						 {"targets": 2,
						  "data": "name"},
						 {"targets": 3,
						  "data": "collegeName"},
						 {"targets": 4,
						  "data": "longPhone"}
        			],
			      
						"ajax": {
							type:"get",
							url:"http://10.21.30.218:8000/questionnaire/user",
 							dataType:"json",
 							data: {},
 							success:function(obj){
								var res=new Array();
								var res=obj.data.aaData;
								console.log(res);
							},
							Error:function(){
								alert("服务器出错");
							}
						}
					
					
			   })
			}
			$(function() {
				
				buildTable();
			})